//
//  HXRadiusButton.m
//  爱鲜蜂
//
//  Created by 建国 on 16/5/4.
//  Copyright © 2016年 建国. All rights reserved.
//

#import "HXRadiusButton.h"

@implementation HXRadiusButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.cornerRadius = self.width * 0.6 ;
        self.layer.borderWidth = 1 ;
        self.layer.borderColor = [UIColor lightGrayColor].CGColor;
    }
    return self;
}

-(void)awakeFromNib{
    self.layer.cornerRadius = self.width * 0.5;
    self.layer.borderWidth = 1 ;
    self.layer.borderColor = [UIColor lightGrayColor].CGColor;
}

@end

